import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-09-11
 * Time: 9:05
 */
public class Test {
    public static void main(String[] args) {
        SeqList seqList1 = new SeqList();
        SeqList seqList2 = new SeqList();
        seqList1.SLPushBack(1);
        seqList1.SLPushBack(4);
        seqList1.SLPushBack(6);
        //seqList1.insert(7);

        seqList2.SLPushBack(7);
        seqList2.SLPushBack(8);
        seqList2.SLPushBack(9);

        seqList1.mergeArrays(seqList2.getArray(),seqList2.getUsedsize());
    }
    public static void main1(String[] args) {
        SeqList seqList = new SeqList();
        seqList.SLPushBack(1);
        seqList.SLPushFront(0);
        seqList.SLPushBack(2);
        seqList.SLPushBack(3);
        System.out.println(seqList.SLcheck(1));
        System.out.println(seqList.SLcheck(5));
        seqList.SLErase(0);
        for(int i = 0; i < seqList.getUsedsize(); i++) {
            System.out.print(seqList.getArray()[i] + " ");
        }
        System.out.println();
        seqList.SLPopFront();
        seqList.SLPopBack();
        for(int i = 0; i < seqList.getUsedsize(); i++) {
            System.out.print(seqList.getArray()[i] + " ");
        }
        System.out.println();
        System.out.println(seqList.SLFind(0));
    }
}
